// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addCommentLike POST /api/commentlike/add */
export async function addCommentLikeUsingPost(
  body: API.CommentLikeAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/commentlike/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** delCommentLike POST /api/commentlike/del */
export async function delCommentLikeUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.delCommentLikeUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/commentlike/del', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listCommentIsLike GET /api/commentlike/novel */
export async function listCommentIsLikeUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listCommentIsLikeUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListLong_>('/api/commentlike/novel', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
